<%@ Page Language="vb" AutoEventWireup="false" CodeFile="indTS.aspx.vb" Inherits="indTS" %>
<%@ Register TagPrefix="uc1" TagName="ucTabelle" Src="../controlli/ucTabelle.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucAnagrafica" Src="../controlli/ucAnagrafica.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucIndirizzi" Src="../controlli/ucIndirizzi.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucTStudio" Src="../controlli/ucTStudio.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucTestata" Src="../controlli/ucTestata.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>SICOP</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../style.css" type="text/css" rel="StyleSheet">
		<script language="JavaScript">
				function apri(s, pag, p){ 
					if (pag=='TS')
						document.Form1.opName.value='../praticanti/indTS.aspx';
					if (pag=='')
						document.Form1.opName.value='indTS.aspx';
					if (pag=='A')
						document.Form1.opName.value='praticanti/indTS.aspx';
					p = p + 'toolbar=no,location=no,menubar=no,resizable=yes,status=no,titlebar=no,scrollbars=yes,directories=no';
					window.open(s,null,p);
									}				
function handleKeyUpRes(maxNumToShow)
{
    var selectObj, textObj, functionListLength;
    var i, searchPattern, numShown;


    // Set references to the form elements
    selectObj = document.forms[0].UcInd_dComuniRes;
    textObj = document.forms[0].UcInd_cercaRes;

    // Remember the function list length for loop speedup
    functionListLength = comuni.length;

    // Set the search pattern depending
    searchPattern = "^"+textObj.value;

    // Create a regulare expression
    re = new RegExp(searchPattern,"gi");
    // Clear the options list
    selectObj.length = 0;

    // Loop through the array and re-add matching options
    numShown = 0;
    for(i = 0; i < functionListLength; i++)
    {
        if(comuni[i].search(re) != -1)
        {
            selectObj[numShown] = new Option(comuni[i],codComuni[i]);
            numShown++;
        }
        // Stop when the number to show is reached
         if(numShown == maxNumToShow)
         {
            break;
         }
    }
    // When options list whittled to one, select that entry
    if(selectObj.length == 1)
    {
        selectObj.options[0].selected = true;
    }
   
    selectObj.selectedIndex = document.forms[0].UcInd_numeroRes.value;

}

function handleKeyUpStudio(maxNumToShow)
{
    var selectObj, textObj, functionListLength;
    var i, searchPattern, numShown;

    // Set references to the form elements
    selectObj = document.forms[0].UcInd_dComuniStudio;
    textObj = document.forms[0].UcInd_cercaStudio;

    // Remember the function list length for loop speedup
    functionListLength = comuni.length;

    // Set the search pattern depending
    searchPattern = "^"+textObj.value;

    // Create a regulare expression
    re = new RegExp(searchPattern,"gi");
    // Clear the options list
    selectObj.length = 0;

    // Loop through the array and re-add matching options
    numShown = 0;
    for(i = 0; i < functionListLength; i++)
    {
        if(comuni[i].search(re) != -1)
        {
            selectObj[numShown] = new Option(comuni[i],codComuni[i]);
            numShown++;
        }
        // Stop when the number to show is reached
         if(numShown == maxNumToShow)
         {
            break;
         }
    }
    // When options list whittled to one, select that entry
    if(selectObj.length == 1)
    {
        selectObj.options[0].selected = true;
    }
   
    selectObj.selectedIndex = document.forms[0].UcInd_numeroStudio.value;

}

function handleKeyUpSped(maxNumToShow)
{
    var selectObj, textObj, functionListLength;
    var i, searchPattern, numShown;

    // Set references to the form elements
    selectObj = document.forms[0].UcInd_dComuniSped;
    textObj = document.forms[0].UcInd_cercaSped;

    // Remember the function list length for loop speedup
    functionListLength = comuni.length;

    // Set the search pattern depending
    searchPattern = "^"+textObj.value;

    // Create a regulare expression
    re = new RegExp(searchPattern,"gi");
    // Clear the options list
    selectObj.length = 0;

    // Loop through the array and re-add matching options
    numShown = 0;
    for(i = 0; i < functionListLength; i++)
    {
        if(comuni[i].search(re) != -1)
        {
            selectObj[numShown] = new Option(comuni[i],codComuni[i]);
            numShown++;
        }
        // Stop when the number to show is reached
         if(numShown == maxNumToShow)
         {
            break;
         }
    }
    // When options list whittled to one, select that entry
    if(selectObj.length == 1)
    {
        selectObj.options[0].selected = true;
    }
   
    selectObj.selectedIndex = document.forms[0].UcInd_numeroSped.value;

}




// this function gets the selected value and loads the appropriate
// php reference page in the display frame
// it can be modified to perform whatever action is needed, or nothing
function handleSelectClickRes()
{
    selectObj = document.forms[0].UcInd_dComuniRes;
    textObj = document.forms[0].UcInd_cercaRes;


	if (selectObj.options.length>0 )
	{
		selectedValue = selectObj.options[selectObj.selectedIndex].value;

		selectedValue = selectedValue.replace(/_/g, '-') ;
		document.forms[0].UcInd_codiceRes.value=selectedValue;
		document.forms[0].UcInd_numeroRes.value = selectObj.selectedIndex;
		document.forms[0].UcInd_descRes.value = selectObj.options[selectObj.selectedIndex].text;
		document.forms[0].UcInd_cercaRes.value = selectObj.options[selectObj.selectedIndex].text;
	}
}
function handleSelectClickStudio()
{
    selectObj = document.forms[0].UcInd_dComuniStudio;
    textObj = document.forms[0].UcInd_cercaStudio;


	if (selectObj.options.length>0 )
	{
		selectedValue = selectObj.options[selectObj.selectedIndex].value;

		selectedValue = selectedValue.replace(/_/g, '-') ;
		document.forms[0].UcInd_codiceStudio.value=selectedValue;
		document.forms[0].UcInd_numeroStudio.value = selectObj.selectedIndex;
		document.forms[0].UcInd_descStudio.value = selectObj.options[selectObj.selectedIndex].text;
		document.forms[0].UcInd_cercaStudio.value = selectObj.options[selectObj.selectedIndex].text;
	}
}
function handleSelectClickSped()
{
    selectObj = document.forms[0].UcInd_dComuniSped;
    textObj = document.forms[0].UcInd_cercaSped;


	if (selectObj.options.length>0 )
	{
		selectedValue = selectObj.options[selectObj.selectedIndex].value;

		selectedValue = selectedValue.replace(/_/g, '-') ;
		document.forms[0].UcInd_codiceSped.value=selectedValue;
		document.forms[0].UcInd_numeroSped.value = selectObj.selectedIndex;
		document.forms[0].UcInd_descSped.value = selectObj.options[selectObj.selectedIndex].text;
		document.forms[0].UcInd_cercaSped.value = selectObj.options[selectObj.selectedIndex].text;
	}
}

function setta(maxNumToShow)
{
	if (document.Form1.UcInd_cercaRes)
		handleKeyUpRes(maxNumToShow);
	if (document.Form1.UcInd_cercaStudio)
		handleKeyUpStudio(maxNumToShow);
	if (document.Form1.UcInd_cercaSped)
		handleKeyUpSped(maxNumToShow);
	
}

		</script>
	</HEAD>
	<body onload="setta(20);" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<input id="opName" type="hidden" value="praticanti/indTS.aspx" name="opName" runat="server">
			<div align="center">
				<table id="tabella di contorno" style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; BORDER-LEFT: 1px; BORDER-BOTTOM: 1px"
					borderColor="#de0029" cellSpacing="0" width="700">
					<tr>
						<td width="100%" bgColor="#de0029">
							<!-- testata --><uc1:uctestata id="UcTestata1" runat="server"></uc1:uctestata>
							<!-- fine testata -->
							<table cellSpacing="0" cellPadding="0" width="700" bgColor="#ffffff" border="0">
								<tr>
									<td vAlign="top" align="left" width="700">
										<p>
											<table id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
												<tr>
													<td width="6"><IMG height="1" src="../images/x.gif" width="1"></td>
													<td colspan="2"><a href="../home.aspx"><span class="blu"><b>&gt; Home</b></span></a></td>
													<td align="right">
														<!-- inizio tabelle tasti --><uc1:uctabelle id="UcTabelle1" runat="server"></uc1:uctabelle>
														<!-- fine tabelle tasti --></td>
												</tr>
												<tr>
													<td width="6"><IMG height="1" src="../images/x.gif" width="1"></td>
													<td width="36"><IMG height="11" src="../images/quadratino_rosso.gif" width="10"></td>
													<td><span class="titolo"><SPAN class="titolo">Registro </SPAN>Praticanti
															<asp:Label id="lbDesc" runat="server">Label</asp:Label></span></td>
													<td align="right"><asp:linkbutton id="lkElenco" CssClass="blu" Runat="server"><img src="../images/vaiElenco.gif" border="0">&nbsp;elenco</asp:linkbutton>&nbsp;</td>
												</tr>
											</table>
										</p>
									</td>
								</tr>
								<tr>
									<td><IMG height="10" src="../images/x.gif"></td>
								</tr>
								<TR>
									<td>
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
											<tr>
												<td vAlign="top" align="left" width="6"><IMG height="1" src="../images/x.gif" width="6" border="0"></td>
												<td align="right"></td>
											</tr>
										</table>
										<p></p>
										<TABLE id="table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TBODY>
												<TR>
													<TD vAlign="top" align="left" width="700">
														<TABLE cellSpacing="0" cellPadding="0" width="700" bgColor="#fdeff1">
															<TBODY>
																<TR>
																	<TD style="HEIGHT: 23px" colSpan="2" height="23"><IMG height="1" src="../images/x.gif" width="1" border="0"><uc1:ucanagrafica id="UcAnag" runat="server"></uc1:ucanagrafica>
																		<input class="nero" id="lbDati" style="COLOR: red; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none"
																			type="text" maxLength="0" size="81" name="lbDati" runat="server"></TD>
																</TR>
																<TR>
																	<TD align="right" background="../images/riga_blu.gif" colSpan="2"><IMG height="16" src="../images/x.gif" width="112" border="0"></TD>
																</TR>
															</TBODY>
														</TABLE>
														<TABLE height="18" cellSpacing="0" cellPadding="0" width="700">
															<TBODY>
																<TR>
																	<td style="HEIGHT: 13px" vAlign="top" align="left" width="6" background="../images/riga_rossa_sopra.gif"><IMG height="18" src="images/x.gif" width="6" border="0"></td>
																	<TD background="../images/riga_rossa_sopra.gif"><IMG height="1" src="../images/x.gif" width="4" border="0"></TD>
																	<TD width="11"><IMG height="18" src="../images/curva_sx_off.gif" width="11" border="0"></TD>
																	<TD noWrap background="../images/tab_off.gif"><asp:linkbutton id="lkIsc" CausesValidation="False" CssClass="ordinato_bold" Runat="server"> iscrizione</asp:linkbutton></TD>
																	<TD width="13"><IMG height="18" src="../images/curva_dx_off.gif" width="13" border="0"></TD>
																	<TD width="11"><IMG height="18" src="../images/curva_sx_on.gif" width="11" border="0"></TD>
																	<TD noWrap background="../images/tab_on.gif"><SPAN class="ordinatoAttivo_bold">indirizzi/titoli 
																			di studio</SPAN></TD>
																	<TD width="13"><IMG height="18" src="../images/curva_dx_on.gif" width="13" border="0"></TD>
																	<TD width="11"><IMG height="18" src="../images/curva_sx_off.gif" width="11" border="0"></TD>
																	<TD noWrap background="../images/tab_off.gif"><asp:linkbutton id="lkProf" CausesValidation="False" CssClass="ordinato_bold" Runat="server"> praticantato</asp:linkbutton></TD>
																	<TD width="13"><IMG height="18" src="../images/curva_dx_off.gif" width="13" border="0"></TD>
																	<TD width="11"><IMG height="18" src="../images/curva_sx_off.gif" width="11" border="0"></TD>
																	<TD noWrap background="../images/tab_off.gif"><asp:linkbutton id="lkEsami" CausesValidation="False" CssClass="ordinato_bold" Runat="server"> esame di stato</asp:linkbutton></TD>
																	<TD width="13"><IMG height="18" src="../images/curva_dx_off.gif" width="13" border="0"></TD>
																	<TD width="100%" background="../images/riga_rossa_sopra.gif"><IMG height="1" src="../images/x.gif" width="1" border="0"></TD>
																	<td style="HEIGHT: 13px" vAlign="top" align="left" width="6" background="../images/riga_rossa_sopra.gif"><IMG height="18" src="images/x.gif" width="6" border="0"></td>
																</TR>
															</TBODY>
														</TABLE>
														<TABLE cellSpacing="0" cellPadding="0" width="700" bgColor="#fff8f9">
															<TBODY>
																<TR>
																	<td style="HEIGHT: 13px" vAlign="top" align="left" width="6" bgColor="#fff8f9"><IMG height="1" src="images/x.gif" width="6" border="0"></td>
																	<TD align="right" bgColor="#fff8f9" colSpan="2"><IMG height="16" src="../images/x.gif" width="112" border="0"></TD>
																</TR>
															</TBODY>
														</TABLE>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
										<table cellSpacing="0" cellPadding="0" width="700" border="0">
											<TR>
												<td vAlign="top" align="left" width="6"><IMG height="1" src="../images/x.gif" width="6" border="0"></td>
												<TD vAlign="top" align="right" width="688" bgcolor="#fff8f9">
													<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="688" border="0" bgcolor="#ffffff">
														<tr>
															<td colSpan="3"><uc1:ucindirizzi id="UcInd" runat="server"></uc1:ucindirizzi></td>
														</tr>
													</TABLE>
													<p>
														<TABLE cellSpacing="1" cellPadding="1" width="100%" border="0">
															<tr>
																<td align="right">
																	<asp:linkbutton id="lkSalva" CausesValidation=False  CssClass="blu" Runat="server"><img src="../images/salva.gif" border="0">&nbsp;salva</asp:linkbutton>&nbsp;&nbsp;
																	<asp:linkbutton id="lkAnnulla" CausesValidation=False  CssClass="blu" Runat="server"><img src="../images/annulla.gif" border="0">&nbsp;annulla</asp:linkbutton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
																</td>
															</tr>
														</TABLE>
													</p>
													<p align="left"><uc1:uctstudio id="UcTS" runat="server"></uc1:uctstudio></p>
													
												</TD>
												<td vAlign="top" align="left" width="6" bgcolor="#fff8f9"><IMG height="1" src="../images/x.gif" width="6" border="0"></td>
											</TR>
										</table>
										<!-- tabella di chiusura -->
										<TABLE id="chiusura" cellSpacing="0" cellPadding="0" width="100%" bgColor="#fff8f9">
											<tr>
												<td height="5"><IMG height="5" alt="" src="../images/x.gif"></td>
											</tr>
											<tr>
												<td background="../images/chiusuraRossa.gif" height="14">
													<div align="center"><b><font face="Tahoma" color="#ffffff" size="1">Techno<i>service</i> 2005. 
																All rights reserved</font></div>
													</B></td>
											</tr>
										</TABLE>
										<!-- chiusura tabella di bordo --></td>
								</TR>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</HTML>
